package com.lizemin.arthas.service;

import com.lizemin.arthas.entiry.User;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * @author lzm
 * @date 2025/5/24 12:13
 * @description
 */
@Service
public class TestService {

    public List<User> getUsers(int start, int end) {
        ArrayList<User> users = new ArrayList<>();
        for (int i = start; i < end; i++) {
            User user = new User();
            int id = i + 1;
            user.setId(id);
            user.setName("csdn - " + id);
            users.add(user);
        }
        return users;
    }

}
